﻿<UserControl x:Class="EFS.RC.SupervisorCentral.Controls.Agents.ACD.List"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:osc="clr-namespace:EFS.RC.SupervisorCentral.Controls.Common"
             mc:Ignorable="d" 
			 Name="agentsACDList"
             d:DesignHeight="500" d:DesignWidth="800"
			 xmlns:myBusyNotInHunt="clr-namespace:EFS.RC.SupervisorCentral.Controls.Agents.ACD.Busy.NotInHunt"
			 xmlns:myAvailable="clr-namespace:EFS.RC.SupervisorCentral.Controls.Agents.ACD.Available"
			 xmlns:myBusyInHunt="clr-namespace:EFS.RC.SupervisorCentral.Controls.Agents.ACD.Busy.InHunt"
			 xmlns:controls="clr-namespace:Microsoft.Lync.Controls;assembly=Microsoft.Lync.Controls">

	<Control.Resources>
		<!-- Styling the DockPanelSplitter -->
		<Style x:Key="HorizontalBevelGrip" TargetType="{x:Type GridSplitter}">
			<!-- Setter Property="Thickness" Value="6"/ -->
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridSplitter}">
						<Grid ToolTip="Resize" SnapsToDevicePixels="True" Background="LightGray">
							<!-- Grip -->
							<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Margin="2 0 2 0" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<!-- (could also use an image or a drawing) -->
							</StackPanel>
							<!-- Bevels -->
							<Border BorderBrush="#5AFFFFFF" BorderThickness="0,1,0,0"/>
							<Border BorderBrush="#5A000000" BorderThickness="0,0,0,1"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="VerticalBevelGrip" TargetType="{x:Type GridSplitter}">
			<!-- Setter Property="Thickness" Value="6"/ -->
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridSplitter}">
						<Grid ToolTip="Resize" SnapsToDevicePixels="True" Background="LightGray">
							<!-- Grip -->
							<StackPanel Orientation="Vertical" VerticalAlignment="Center">
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Margin="0 2 0 2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<!-- (could also use an image or a drawing) -->
							</StackPanel>
							<!-- Bevels -->
							<Border BorderBrush="#5AFFFFFF" BorderThickness="1,0,0,0"/>
							<Border BorderBrush="#5A000000" BorderThickness="0,0,1,0"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Control.Resources>
	
	<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
		<Grid Name="gridBottomPanes_Available_InHunt" DockPanel.Dock="Top" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
			<Grid.ColumnDefinitions >
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="*" MinHeight="85" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" MinHeight="85" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" MinHeight="130" />
			</Grid.RowDefinitions>

			<GridSplitter 
				ResizeDirection="Rows"
				Grid.Column="0"
				Grid.ColumnSpan="1"
				Grid.Row="1"
				Width="Auto"
				Height="6"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Stretch"
				Margin="0"
				Style="{StaticResource HorizontalBevelGrip}" />

			<GridSplitter 
				ResizeDirection="Rows"
				Grid.Column="0"
				Grid.ColumnSpan="1"
				Grid.Row="3"
				Width="Auto"
				Height="6"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Stretch"
				Margin="0"
				Style="{StaticResource HorizontalBevelGrip}" />

			<DockPanel Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Top">
				<Grid Name="gridBusyNotInHunt" DockPanel.Dock="Top" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
					<myBusyNotInHunt:List HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" x:Name="controlListBusyNotInHunt" />
				</Grid>
			</DockPanel>
			<DockPanel Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Top">
				<Grid Name="gridAvailable" DockPanel.Dock="Top" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
					<myAvailable:List HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" x:Name="controlListAvailable" />
				</Grid>
			</DockPanel>
			<DockPanel Grid.Row="4" HorizontalAlignment="Stretch" VerticalAlignment="Top">
				<Grid Name="gridBusyInHunt" DockPanel.Dock="Top" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
					<myBusyInHunt:List HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" x:Name="controlListBusyInHunt" />
				</Grid>
			</DockPanel>
		</Grid>
	</Grid>
	
</UserControl>